.custom-searchbar {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  background-color: var(--geek-color-1);
  z-index: 5;

  input {
    padding: 0 54px;
    border: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512'%3e%3cpath d='M508.9 478.7L360 330a201.6 201.6 0 0045.2-127.3C405.3 90.9 314.4 0 202.7 0S0 91 0 202.7s91 202.6 202.7 202.6c48.2 0 92.4-17 127.3-45.2L478.7 509c4.2 4.1 11 4.1 15 0l15.2-15.1c4.1-4.2 4.1-11 0-15zm-306.2-116c-88.3 0-160-71.8-160-160s71.7-160 160-160 160 71.7 160 160-71.8 160-160 160z' data-original='%23000000' class='active-path' data-old_color='%23000000' fill='%23D8D8D8'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 14px;
    background-position: 25px 50%;
    color: var(--geek-color-10);
    font-size: 13px;
    outline: none;

    &::placeholder {
      color: var(--geek-color-10);
    }
  }
}

@media screen and (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    overflow: auto;
    z-index: 4;

    &::-webkit-scrollbar {
      display: none;
    }
  }

  #side-btn-wrap {
    visibility: visible;
    position: fixed;
    bottom: 20px;
    right: 28px;
    padding: 10px;
    background: #fff;
    box-shadow: 1px 1px 8px var(--color-primary);
    border-radius: 50%;
    z-index: 20;
  }

  #left-side {
    .favourite {
      padding: 30px;

      h3 {
        display: block;
        padding-left: 0;
      }

      ul {
        flex-direction: row;
        flex-wrap: wrap;

        li {
          padding: 0.3rem 0.6rem;
          border-radius: 2px;
          margin-bottom: 0.5rem;
          margin-right: 0.5rem;
          background-color: var(--geek-color-6);
          font-size: 12px;

          a {
            margin: 0;
          }
        }
      }
    }
  }

  #custom-mobile-nav .icon {
    width: 27px;
    margin-left: 5px;
    transform: rotate(90deg);
  }

  #side-btn {
    position: relative;
    width: 25px;
    height: 25px;
    cursor: pointer;
  }

  #side-btn-burger {
    position: absolute;
    background: var(--color-primary);
    width: 100%;
    height: 3px;
    top: 50%;
    right: 0;
    margin-top: -1px;
    opacity: 1;
    transition: all 0.2s ease-in-out;
  }

  #side-btn-burger:after,
  #side-btn-burger:before {
    border-radius: 2px;
    background: var(--color-primary);
    position: absolute;
    width: 100%;
    height: 3px;
    content: '';
    display: block;
    transition: all 0.2s ease-in-out;
  }

  #side-btn-burger:before {
    top: 8px;
  }

  #side-btn-burger:after {
    bottom: 8px;
  }

  #side-btn.side-btn-active #side-btn-burger {
    background: 0 0;
  }

  #side-btn.side-btn-active #side-btn-burger:before {
    transition: all 0.2s;
    transform: rotate(45deg);
    top: 0;
  }

  #side-btn.side-btn-active #side-btn-burger:after,
  #side-btn.side-btn-active #side-btn-burger:before {
    transition: all 0.2;
  }

  #side-btn.side-btn-active #side-btn-burger:after {
    transition: all 0.3s;
    transform: rotate(-45deg);
    bottom: 0;
  }

  #side-btn.side-btn-active #side-btn-burger:after,
  #side-btn.side-btn-active #side-btn-burger:before {
    transition: all 0.2s;
  }

  // header trigger

  .navbar-burger {
    cursor: pointer;
    display: block;
    width: 39px;
    height: 39px;
    position: absolute;
    top: 0;
    right: 4px;
    margin-left: auto;
    z-index: 5;

    span {
      background-color: currentColor;
      display: block;
      height: 1px;
      left: calc(50% - 8px);
      position: absolute;
      transform-origin: center;
      transition-duration: 86ms;
      transition-property: background-color, opacity, transform;
      transition-timing-function: ease-out;
      width: 16px;

      &:nth-child(1) {
        top: calc(50% - 6px);
      }

      &:nth-child(2) {
        top: calc(50% - 1px);
      }

      &:nth-child(3) {
        top: calc(50% + 4px);
      }
    }

    &.is-active {
      span {
        &:nth-child(1) {
          transform: translateY(5px) rotate(45deg);
        }

        &:nth-child(2) {
          opacity: 0;
        }

        &:nth-child(3) {
          transform: translateY(-5px) rotate(-45deg);
        }
      }
    }
  }
}

.mobile-menu.is-active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
